package com.rabbit.eap.system.service;

import com.rabbit.eap.framework.common.api.ApiResult;
import com.rabbit.eap.framework.common.service.BaseService;
import com.rabbit.eap.system.dto.SysDictDataDTO;
import com.rabbit.eap.system.entity.SysDictData;
import com.rabbit.eap.system.param.SysDictDataPageParam;

/**
 * @projectName: eap
 * @packageName: com.rabbit.eap.system.service
 * @className: ISysDictDataService
 * @author： rabbit
 * @version： 1.0
 * @since： 2020/06/06 23:34:02
 * <p>Description:
 * 字典数据表 服务类
 * </p>

 */
public interface ISysDictDataService extends BaseService<SysDictData> {


    /**
     * @Description: 添加字典数据表
     * @methodName: saveSysDictData
     * @param sysDictDataDTO:sysDictDataDTO数据传输对象
     * @return: ApiResult
     * @throws Exception
     * @date: 2020/06/06 23:34:02
     * @author: rabbit
     */
    ApiResult saveSysDictData(SysDictDataDTO sysDictDataDTO) throws Exception;


    /**
     * @Description: 修改字典数据表
     * @methodName: modifySysDictData
     * @param  sysDictDataDTO:sysDictDataDTO数据传输对象
     * @return: ApiResult
     * @throws Exception
     * @date: 2020/06/06 23:34:02
     * @author: rabbit
     */
    ApiResult modifySysDictData(SysDictDataDTO sysDictDataDTO) throws Exception;

    /**
     * @Description: 删除字典数据表
     * @methodName: removeSysDictData
     * @param ids:ids集合
     * @return: ApiResult.result(flag)
     * @throws Exception
     * @date: 2020/06/06 23:34:02
     * @author: rabbit
     */
    ApiResult removeSysDictData(Long[] ids) throws Exception;

    /**
     * @Description: 根据Id获取字典数据表详情
     * @methodName: getSysDictDataInfo
     * @param id: id
     * @return:  SysDictDataVO
     * @throws Exception
     * @date: 2020/06/06 23:34:02
     * @author: rabbit
     */
    ApiResult getSysDictDataById(Long id) throws Exception;

    /**
     * @Description: 字典数据表分页列表
     * @methodName: getSysDictDataPageList
     * @param sysDictDataPageParam
     * @return: Paging<SysDictDataVO>
     * @throws Exception
     * @date: 2020/06/06 23:34:02
     * @author: rabbit
     */
    ApiResult getSysDictDataPageList(SysDictDataPageParam sysDictDataPageParam) throws Exception;

    /**
     * @Description: 根据字典类型查询字典数据信息
     * @methodName: getSysDictDataByDictType
     * @param dictTypeId: 字典类型Id
     * @return: com.rabbit.eap.framework.common.api.ApiResult
     * @date: 2020/6/17 19:15
     * @author: rabbit
     *
     */
    ApiResult getSysDictDataByDictType(Long dictTypeId);
}
